<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">标题:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-title" class="form-control" name="row[title]" type="text" value="" data-rule="required">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">封面:</label>
        <div class="col-xs-12 col-sm-8">
            {:Form::image('row[image]', null, ['data-rule'=>'required'])}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">模板分类:</label>
        <div class="col-xs-12 col-sm-8">
            {:Form::selectpicker('row[formwork_category_id]', $groupName)}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">价格类目:</label>
        <div class="col-xs-12 col-sm-8">
            {:Form::selectpicker('row[category_id]', $categoryName,null, ['data-rule'=>'required'])}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">图最小值:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-photo_min" class="form-control" name="row[photo_min]" type="number" step="1" value="" data-rule="required">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">图最大值:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-photo_min" class="form-control" name="row[photo_max]" type="number" step="1" value="" data-rule="required">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
